package zheezes.protocol.impl.gbw.format;

public abstract class DataForm {
	public abstract int sizeof();

	public byte[] getBytes() {
		byte[] buf = new byte[sizeof()];
		getBytes(buf, 0);
		return buf;
	}

	public abstract int getBytes(byte[] buf, int offset);

	public int setBytes(byte[] buf) {
		return setBytes(buf, 0);
	}
	
	public abstract int setBytes(byte[] buf, int offset);
}
